import Axios from 'axios';

import qs from 'qs'

var root = process.env.API_ROOT;

Axios.defaults.withCredentials = true

const axios = Axios.create();
//请求拦截
axios.interceptors.request.use((config) => {

    //请求之前重新拼装url
    config.url = root + config.url;
    return config;
});
export default axios;
